// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;
import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * CatalogCategoryEntity generated by hbm2java
 */
@Entity
@Table(name = "catalog_category_entity", catalog = "magento")
public class CatalogCategoryEntity implements java.io.Serializable 
{
	private static final long serialVersionUID = 121323L;

	private Integer entityId;
	private short entityTypeId;
	private short attributeSetId;
	private int parentId;
	private Date createdAt;
	private Date updatedAt;
	private String path;
	private int position;
	private int level;
	private int childrenCount;
	private Set coreUrlRewrites = new HashSet(0);
	private Set catalogCategoryEntityVarchars = new HashSet(0);
	private CatalogCategoryFlatStore3 catalogCategoryFlatStore3;
	private CatalogCategoryFlatStore1 catalogCategoryFlatStore1;
	private Set catalogCategoryEntityInts = new HashSet(0);
	private Set catalogCategoryProducts = new HashSet(0);
	private Set catalogCategoryEntityTexts = new HashSet(0);
	private Set catalogCategoryEntityDatetimes = new HashSet(0);
	private CatalogCategoryFlatStore2 catalogCategoryFlatStore2;
	private Set catalogCategoryEntityDecimals = new HashSet(0);
	private Set catalogCategoryProductIndexes = new HashSet(0);

	public CatalogCategoryEntity() {
	}

	public CatalogCategoryEntity(short entityTypeId, short attributeSetId,
			int parentId, String path, int position, int level,
			int childrenCount) {
		this.entityTypeId = entityTypeId;
		this.attributeSetId = attributeSetId;
		this.parentId = parentId;
		this.path = path;
		this.position = position;
		this.level = level;
		this.childrenCount = childrenCount;
	}

	public CatalogCategoryEntity(short entityTypeId, short attributeSetId,
			int parentId, Date createdAt, Date updatedAt, String path,
			int position, int level, int childrenCount, Set coreUrlRewrites,
			Set catalogCategoryEntityVarchars,
			CatalogCategoryFlatStore3 catalogCategoryFlatStore3,
			CatalogCategoryFlatStore1 catalogCategoryFlatStore1,
			Set catalogCategoryEntityInts, Set catalogCategoryProducts,
			Set catalogCategoryEntityTexts, Set catalogCategoryEntityDatetimes,
			CatalogCategoryFlatStore2 catalogCategoryFlatStore2,
			Set catalogCategoryEntityDecimals, Set catalogCategoryProductIndexes) {
		this.entityTypeId = entityTypeId;
		this.attributeSetId = attributeSetId;
		this.parentId = parentId;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
		this.path = path;
		this.position = position;
		this.level = level;
		this.childrenCount = childrenCount;
		this.coreUrlRewrites = coreUrlRewrites;
		this.catalogCategoryEntityVarchars = catalogCategoryEntityVarchars;
		this.catalogCategoryFlatStore3 = catalogCategoryFlatStore3;
		this.catalogCategoryFlatStore1 = catalogCategoryFlatStore1;
		this.catalogCategoryEntityInts = catalogCategoryEntityInts;
		this.catalogCategoryProducts = catalogCategoryProducts;
		this.catalogCategoryEntityTexts = catalogCategoryEntityTexts;
		this.catalogCategoryEntityDatetimes = catalogCategoryEntityDatetimes;
		this.catalogCategoryFlatStore2 = catalogCategoryFlatStore2;
		this.catalogCategoryEntityDecimals = catalogCategoryEntityDecimals;
		this.catalogCategoryProductIndexes = catalogCategoryProductIndexes;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "entity_id", unique = true, nullable = false)
	public Integer getEntityId() {
		return this.entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	@Column(name = "entity_type_id", nullable = false)
	public short getEntityTypeId() {
		return this.entityTypeId;
	}

	public void setEntityTypeId(short entityTypeId) {
		this.entityTypeId = entityTypeId;
	}

	@Column(name = "attribute_set_id", nullable = false)
	public short getAttributeSetId() {
		return this.attributeSetId;
	}

	public void setAttributeSetId(short attributeSetId) {
		this.attributeSetId = attributeSetId;
	}

	@Column(name = "parent_id", nullable = false)
	public int getParentId() {
		return this.parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_at", length = 19)
	public Date getCreatedAt() {
		return this.createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_at", length = 19)
	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	@Column(name = "path", nullable = false)
	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "position", nullable = false)
	public int getPosition() {
		return this.position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

	@Column(name = "level", nullable = false)
	public int getLevel() {
		return this.level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	@Column(name = "children_count", nullable = false)
	public int getChildrenCount() {
		return this.childrenCount;
	}

	public void setChildrenCount(int childrenCount) {
		this.childrenCount = childrenCount;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCoreUrlRewrites() {
		return this.coreUrlRewrites;
	}

	public void setCoreUrlRewrites(Set coreUrlRewrites) {
		this.coreUrlRewrites = coreUrlRewrites;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryEntityVarchars() {
		return this.catalogCategoryEntityVarchars;
	}

	public void setCatalogCategoryEntityVarchars(
			Set catalogCategoryEntityVarchars) {
		this.catalogCategoryEntityVarchars = catalogCategoryEntityVarchars;
	}

	@OneToOne(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public CatalogCategoryFlatStore3 getCatalogCategoryFlatStore3() {
		return this.catalogCategoryFlatStore3;
	}

	public void setCatalogCategoryFlatStore3(
			CatalogCategoryFlatStore3 catalogCategoryFlatStore3) {
		this.catalogCategoryFlatStore3 = catalogCategoryFlatStore3;
	}

	@OneToOne(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public CatalogCategoryFlatStore1 getCatalogCategoryFlatStore1() {
		return this.catalogCategoryFlatStore1;
	}

	public void setCatalogCategoryFlatStore1(
			CatalogCategoryFlatStore1 catalogCategoryFlatStore1) {
		this.catalogCategoryFlatStore1 = catalogCategoryFlatStore1;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryEntityInts() {
		return this.catalogCategoryEntityInts;
	}

	public void setCatalogCategoryEntityInts(Set catalogCategoryEntityInts) {
		this.catalogCategoryEntityInts = catalogCategoryEntityInts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryProducts() {
		return this.catalogCategoryProducts;
	}

	public void setCatalogCategoryProducts(Set catalogCategoryProducts) {
		this.catalogCategoryProducts = catalogCategoryProducts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryEntityTexts() {
		return this.catalogCategoryEntityTexts;
	}

	public void setCatalogCategoryEntityTexts(Set catalogCategoryEntityTexts) {
		this.catalogCategoryEntityTexts = catalogCategoryEntityTexts;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryEntityDatetimes() {
		return this.catalogCategoryEntityDatetimes;
	}

	public void setCatalogCategoryEntityDatetimes(
			Set catalogCategoryEntityDatetimes) {
		this.catalogCategoryEntityDatetimes = catalogCategoryEntityDatetimes;
	}

	@OneToOne(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public CatalogCategoryFlatStore2 getCatalogCategoryFlatStore2() {
		return this.catalogCategoryFlatStore2;
	}

	public void setCatalogCategoryFlatStore2(
			CatalogCategoryFlatStore2 catalogCategoryFlatStore2) {
		this.catalogCategoryFlatStore2 = catalogCategoryFlatStore2;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryEntityDecimals() {
		return this.catalogCategoryEntityDecimals;
	}

	public void setCatalogCategoryEntityDecimals(
			Set catalogCategoryEntityDecimals) {
		this.catalogCategoryEntityDecimals = catalogCategoryEntityDecimals;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "catalogCategoryEntity")
	public Set getCatalogCategoryProductIndexes() {
		return this.catalogCategoryProductIndexes;
	}

	public void setCatalogCategoryProductIndexes(
			Set catalogCategoryProductIndexes) {
		this.catalogCategoryProductIndexes = catalogCategoryProductIndexes;
	}

}
